package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysBusinessCarouselMapper;
import com.ruoyi.system.domain.SysBusinessCarousel;
import com.ruoyi.system.service.ISysBusinessCarouselService;

/**
 * 轮播图Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-29
 */
@Service
public class SysBusinessCarouselServiceImpl implements ISysBusinessCarouselService 
{
    @Autowired
    private SysBusinessCarouselMapper sysBusinessCarouselMapper;

    /**
     * 查询轮播图
     * 
     * @param id 轮播图主键
     * @return 轮播图
     */
    @Override
    public SysBusinessCarousel selectSysBusinessCarouselById(Long id)
    {
        return sysBusinessCarouselMapper.selectSysBusinessCarouselById(id);
    }

    /**
     * 查询轮播图列表
     * 
     * @param sysBusinessCarousel 轮播图
     * @return 轮播图
     */
    @Override
    public List<SysBusinessCarousel> selectSysBusinessCarouselList(SysBusinessCarousel sysBusinessCarousel)
    {
        return sysBusinessCarouselMapper.selectSysBusinessCarouselList(sysBusinessCarousel);
    }

    /**
     * 新增轮播图
     * 
     * @param sysBusinessCarousel 轮播图
     * @return 结果
     */
    @Override
    public int insertSysBusinessCarousel(SysBusinessCarousel sysBusinessCarousel)
    {
        return sysBusinessCarouselMapper.insertSysBusinessCarousel(sysBusinessCarousel);
    }

    /**
     * 修改轮播图
     * 
     * @param sysBusinessCarousel 轮播图
     * @return 结果
     */
    @Override
    public int updateSysBusinessCarousel(SysBusinessCarousel sysBusinessCarousel)
    {
        return sysBusinessCarouselMapper.updateSysBusinessCarousel(sysBusinessCarousel);
    }

    /**
     * 批量删除轮播图
     * 
     * @param ids 需要删除的轮播图主键
     * @return 结果
     */
    @Override
    public int deleteSysBusinessCarouselByIds(Long[] ids)
    {
        return sysBusinessCarouselMapper.deleteSysBusinessCarouselByIds(ids);
    }

    /**
     * 删除轮播图信息
     * 
     * @param id 轮播图主键
     * @return 结果
     */
    @Override
    public int deleteSysBusinessCarouselById(Long id)
    {
        return sysBusinessCarouselMapper.deleteSysBusinessCarouselById(id);
    }
}
